﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="configshop_searchresult.aspx.cs"
    Inherits="map.member.configshop_searchresult" Title="搜索结果" %>

<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        *
        {
            font-size: small;
            margin: 0;
            padding: 0;
        }
    </style>
    <script src="js/configshop.js" type="text/javascript"></script>
    <script type="text/javascript">
//    window.onload=function(){
//        self.parent.adjustFrameHeight(document.body.clientHeight,
//        self.window.frameElement.id,
//        self.parent.document.getElementById(self.window.frameElement.id).parentNode.parentNode.id
//        );  
//    }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Literal ID="Literalcss" runat="server"></asp:Literal>
    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="titlediv">
                <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td>
                            <div class="title">
                                <b>商品搜索结果</b></div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="GridView_shop" runat="server" AutoGenerateColumns="False" Width="100%"
                                BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px"
                                CellPadding="4" GridLines="Horizontal">
                                <FooterStyle BackColor="White" ForeColor="#333333" />
                                <RowStyle BackColor="White" ForeColor="#333333" />
                                <Columns>
                                    <asp:TemplateField HeaderText="图片">
                                        <ItemTemplate>
                                            <img style="width: 80px; height: 80px" alt="" src='<%#Eval("taobaopic_path").ToString()%>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="商品名称">
                                        <ItemTemplate>
                                            <a href="../member/default.aspx?cbshoppageid=2&id=<%#Eval("userRECID") %>
                                &itemid=<%#Eval("RECID") %>" target="_blank">
                                                <%# Eval("taobaotitle").ToString()%></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="价格" DataField="taobaoprice" />
                                    <asp:BoundField HeaderText="数量" DataField="taobaonum" />
                                    <asp:TemplateField HeaderText="类型">
                                        <ItemTemplate>
                                            <%# (Eval("taobaostuff_status").ToString() == "new") ? "全新" :  
                                 ((Eval("taobaostuff_status").ToString() == "second")?"二手":"个人闲置") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="上架时间">
                                        <ItemTemplate>
                                            <%#Eval("taobaolist_time").ToString().Trim().Length == 19 ? 
                                Eval("taobaolist_time").ToString().Substring(0,10) : 
                                Eval("taobaolist_time").ToString().Substring(0,8)%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle CssClass="Title" />
                            </asp:GridView>
                            <cc1:WebPager ID="WebPager_shop" runat="server"  Width="100%"
                                ControlToPaginate="GridView_shop" />
                        </td>
                    </tr>
                </table>
                <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td>
                            <div class="title">
                                <b>论坛搜索结果</b></div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="GridView_bbs" runat="server" AutoGenerateColumns="False" Width="100%"
                                BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px"
                                CellPadding="4" GridLines="Horizontal">
                                <FooterStyle BackColor="White" ForeColor="#333333" />
                                <RowStyle BackColor="White" ForeColor="#333333" />
                                <Columns>
                                    <asp:TemplateField HeaderText="标题">
                                        <ItemTemplate>
                                            <a href="../member/default.aspx?cbshoppageid=6&id=<%#Eval("userRECID") %>
                                &value=<%#Eval("cblistid") %>" target="_blank">
                                                <%# Eval("cbtitle").ToString()%></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="作者">
                                        <ItemTemplate>
                                            <a href='<%#ResolveUrl("~/blog/") +Eval("userrecid")+".html"%>' target="_blank">
                                                <%#chatblog.zfunction.getnick(Eval("cbuserid").ToString())%></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="查看次数" DataField="chakanshu" />
                                    <asp:TemplateField HeaderText="发表时间">
                                        <ItemTemplate>
                                            <%#Eval("jccreatedate").ToString().Trim().Length == 19 ?
                                Eval("jccreatedate").ToString().Substring(0, 10) :
                                Eval("jccreatedate").ToString().Substring(0, 8)%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle CssClass="Title" />
                            </asp:GridView>
                            <cc1:WebPager ID="WebPager_bbs" runat="server"   Width="100%" 
                                ControlToPaginate="GridView_bbs" />
                        </td>
                        
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
